package co.com.jtune;

import java.util.Locale;

import org.jdesktop.application.Application;
import org.jdesktop.application.SingleFrameApplication;

import co.com.jtune.libraries.JTuneLogger;
import co.com.jtune.view.main.JTuneFrame;

public class JTuneApp extends SingleFrameApplication {
	
	public static JTuneApp getApplication() {
		Application.getInstance(JTuneApp.class);
		return Application.getInstance(JTuneApp.class);
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		launch(JTuneApp.class, args);
		
	}
	
	@Override
	protected void initialize(String[] args) {
		super.initialize(args);
		Locale.setDefault(new Locale("ES", "CO"));
		JTuneLogger.getJTuneLogger().debug("Iniciando JTune");
	}

	@Override
	protected void startup() {		
		javax.swing.SwingUtilities.invokeLater(new Runnable() {
            public void run() {
            	JTuneFrame jTune = new JTuneFrame();
        		jTune.setVisible(true);
            }
        });
	}

}
